package com.cygia.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * 采购订单实体类
 */

@Data
public class Purchase {
    @TableId(type = IdType.AUTO)
    private String id; // id
    private String cgzz; // 采购组织
    private String cgddh; // 采购订单号
    private String gys;  // 供应商
    private String cgy; // 采购员
    private String wlbm; // 物料编码
    private String name; // 名称
    private String ggxh;  // 规格型号

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date cgrq;  // 采购日期

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date ddshrq;  // 订单审核日期

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCgzz() {
        return cgzz;
    }

    public void setCgzz(String cgzz) {
        this.cgzz = cgzz;
    }

    public String getCgddh() {
        return cgddh;
    }

    public void setCgddh(String cgddh) {
        this.cgddh = cgddh;
    }

    public String getGys() {
        return gys;
    }

    public void setGys(String gys) {
        this.gys = gys;
    }

    public String getCgy() {
        return cgy;
    }

    public void setCgy(String cgy) {
        this.cgy = cgy;
    }

    public String getWlbm() {
        return wlbm;
    }

    public void setWlbm(String wlbm) {
        this.wlbm = wlbm;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGgxh() {
        return ggxh;
    }

    public void setGgxh(String ggxh) {
        this.ggxh = ggxh;
    }

    public Date getCgrq() {
        return cgrq;
    }

    public void setCgrq(Date cgrq) {
        this.cgrq = cgrq;
    }

    public Date getDdshrq() {
        return ddshrq;
    }

    public void setDdshrq(Date ddshrq) {
        this.ddshrq = ddshrq;
    }
}
